#include <stdio.h>

void printfBubbleSort(int arr[],int sz)
{
    int i;
    for(i = 0;i<sz;i++)
    {
        printf("%d ",arr[i]);
    }
    printf("\n");
}
void BubbleSort(int arr[],int sz)
{
    int i = 0;
        for (i = 0; i < sz - 1; i++)
        {
            int j = 0;
            for (j = 0; j < sz - 1 - i; j++)
            {
                if (arr[j] < arr[j + 1])
                {
                    int temp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = temp;
                }
            }
        }
}

int main()
{
    int a[10] = {1,4,2,3,6,7,9,10,11,19};
    int sz = sizeof(a)/sizeof(a[0]);
    BubbleSort(a,sz);
    printfBubbleSort(a,sz);
    return 0;
}

